package com.haohope.framework.wb.buffer;

import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class DefaultControlsBuffer extends ControlsBuffer{
	private Map<String, String> buffer = new ConcurrentHashMap<>();
	@Override
	public int _size() {
		return buffer.size();
	}
	@Override
	public boolean _isEmpty() {
		return buffer.isEmpty();
	}
	@Override
	public boolean _containsKey(String key) {
		return buffer.containsKey(key);
	}
	@Override
	public boolean _containsValue(String value) {
		return buffer.containsValue(value);
	}
	@Override
	public String _get(String key) {
		return buffer.get(key);
	}
	@Override
	public String _put(String key, String value) {
		return buffer.put(key, value);
	}
	@Override
	public String _remove(String key) {
		return buffer.remove(key);
	}
	@Override
	public void _putAll(Map<String, String> m) {
		buffer.putAll(m);
	}
	@Override
	public void _clear() {
		buffer.clear();
	}
	@Override
	public Set<String> _keySet() {
		return buffer.keySet();
	}
	@Override
	public Collection<String> _values() {
		return buffer.values();
	}
	@Override
	public Set<Entry<String, String>> _entrySet() {
		return buffer.entrySet();
	}
}
